package com.ciwong.epaper.modules.viedoexplantion.imp;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.ciwong.epaper.R;
import com.ciwong.epaper.modules.viedoexplantion.LoadUi;
import com.ciwong.epaper.widget.GraspStateBar;

/**
 * Created by young on 2016/7/5.
 * 视频讲解选择题加载UI类
 * MODIFY BY
 */
public class ChoiceLoadUi implements LoadUi {

    private GraspStateBar grasp_state_bar;

    @Override
    public View loadLayout(Object  o, Context context,Boolean b) {
        View view= LayoutInflater.from(context).inflate(R.layout.item_video_test_type_choice,null);
        grasp_state_bar= (GraspStateBar) view.findViewById(R.id.grasp_state_bar);

        grasp_state_bar.setQuestionsObject(o);
        grasp_state_bar.setOnGraspStateChangeListener(new GraspStateBar.OnGraspStateChangeListener() {
            @Override
            public void onGraspStateChange(int graspState) {

            }
        });

        grasp_state_bar.getGraspState();
        return view;
    }


}
